@import "../css/reset.css";

@color-white: #ffffff;
@color-green: #188B74;
@color-green-font: #20C375;
@color-green-side: #1BBC9B;
@green-dress: #2CC983;
@green-radius: #1BBC9B;
@border-radius: 40px;
@color-grey: #B0B7C0;
@border-grey: #BBB;
@bg-grey: #F5F5F5;
@font-grey: #B3B3B3;
@small-grey: #BBBBBB;
@num-grey: #777;
@page-grey: #c3c3c3;
@footer-grey: #808080;

.clear:after {
  content: "";
  display: block;
  clear: both;
}

.icons {
  display: inline-block;
  &.circle {
    width: 16px;
    height: 16px;
    border: 2px solid @color-green-font;
    color: @color-green-font;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 16px;
    float: left;
    display: inline-block;
  }
  &.read {
    width: 24px;
    height: 14px;
    background: url("http://image.cheerby.cn/appImage/web/icon.png") no-repeat -16px 0;
  }
  &.comment {
    width: 20px;
    height: 16px;
    background: url("http://image.cheerby.cn/appImage/web/icon.png") no-repeat -58px 0;
    margin-top: 2px;
    margin-left: 10px;
  }
  &.agree {
    width: 18px;
    height: 19px;
    background: url("http://image.cheerby.cn/appImage/web/icon.png") no-repeat -40px 0;
    margin-top: 0;
    margin-left: 10px;
  }
  &.share {
    width: 20px;
    height: 19px;
    background: url("http://image.cheerby.cn/appImage/web/icon.png") no-repeat -78px 0;
    margin-top: 0;
    margin-left: 10px;
  }


}



.green-button {
  height: 40px;
  border-radius: 5px;
  color: white;
  background-color: @color-green-font;
  line-height: 39px;
  font-size: 18px;
  cursor: pointer;
  text-align: center;
  margin-left: 25px;
  padding: 0 22px;
  &:hover {
    background-color: lighten(@color-green-font, 10%);
    transition: .3s;
  }
}

.card {
  background-color: white;
  margin-top: 15px;
  border-radius: 10px;
}

body {
  position: relative;

}

* {
  font-weight: 400;
}

nav {
  width: 100%;
  position: fixed;
  top: 0;
  background-color: @color-white;
  height: 60px;
  #logo {
    float: left;
    display: block;
    width: 276px;
    height: 60px;
    background-image: url("http://image.cheerby.cn/appImage/web/logo2.png");
    background-position: 0 16px;
    background-repeat: no-repeat;
    margin-left: 41px;
    position: fixed;
    left: 0;
  }

  #right-bar {
    float: right;
    height: 52px;
    position: fixed;
    right: 30px;
    a {
      color: @color-green-side;
    }
    li {
      width: 48px;
      height: 27px;
      padding-top: 25px;
      display: block;
      float: left;
      text-align: center;
      list-style: none;
      text-decoration: none;
      line-height: 27px;
      cursor: pointer;
      &.active {
        background-color: @color-green-side;
        a {
          color: white;
        }

      }

    }
  }
}
.page-box {
  display: flex;
  width: 100%;
  float: left;
  justify-content: center;
  align-content: center;
  margin-top: 35px;
  .page-line {
    max-width: 410px;
    height: 30px;
    line-height: 30px;
    padding: 5px 5px;
    border-radius: 25px;
    background-color: @color-white;
    color: @page-grey;
    float: left;
    .num-line {
      float: left;
      .num {
        float: left;
        width: 30px;
        height: 30px;
        text-align: center;
        border-radius: 50%;
        cursor: pointer;
        margin-right: 5px;
        &.active {
          background-color: @color-green-font;
          color: @color-white;
        }
      }
    }
    form {
      float: right;
      margin-right: 5px;
      input[type='text'] {
        width: 40px;
        height: 24px;
        border: 1px solid @page-grey;
        box-sizing: border-box;
        text-align: center;
        color: @page-grey;
        float: left;
        margin-top: 3px;
        margin-right: 5px;
      }
      input[type='submit'] {
        width: 30px;
        height: 30px;
        background: url("http://image.cheerby.cn/appImage/web/icon.png") no-repeat -98px 0;
        float: right;
        margin-left: 10px;

      }
    }
  }
}


#footer {
  width: 1080px;
  height: 80px;
  margin: auto;
  border-top: 1px solid @footer-grey;
  line-height: 80px;
  text-align: center;
  font-size: 12px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  li {
    display: inline;
    margin-right: 35px;
  }

}

#home {
  width: 100%;
  margin: 60px auto 0;

  #banner {
    width: 100%;
    margin: auto;
    margin-bottom: 80px;
    background: url("http://image.cheerby.cn/appImage/web/header.png") no-repeat;
    background-position: center;
    background-size: cover;
    height: 725px;
    position: relative;
    .double-button {
      position: absolute;
      bottom: 24%;
      right: 51%;
      opacity: 0.8;
      button {
        width: 172px;
        height: 52px;
        background-color: @color-green;
        color: @color-white;
        margin-right: 30px;
        border-radius: @border-radius;
        line-height: 52px;
        font-size: 20px;
        cursor: pointer;
        span {
          display: inline-block;
          margin: -6px 12px;
          margin-left: -3px;
          &.and {
            background: url("http://image.cheerby.cn/appImage/web/icons.png")-53px -87px;
            width: 24px;
            height: 28px;
          }
          &.iph {
            background: url("http://image.cheerby.cn/appImage/web/icons.png")-84px -87px;
            width: 21px;
            height: 27px;
          }

        }
      }
    }
  }
  .main-bar {
    float: left;
    width: 100%;
    margin-bottom: 80px;
    #phone {
      background: url("http://image.cheerby.cn/appImage/web/phone.png") no-repeat;
      height: 563px;
      width: 894px;
      margin: auto;
      position: relative;
      .left {
        background: url("http://image.cheerby.cn/appImage/web/icons.png")0 -85px;
        width: 19px;
        height: 35px;
        position: absolute;
        top: 48%;
        left: -45px;
      }
      .right {
        background: url("http://image.cheerby.cn/appImage/web/icons.png")-20px -85px;
        width: 19px;
        height: 34px;
        position: absolute;
        top: 48%;
        left: 305px;
      }
      .phone-img {
        left: 16px;
        top: 65px;
        height: 436px;
        width: 246px;
        overflow: hidden;
        position: relative;
        div {
          height: 436px;
          width: 246px;
          position: absolute;
          left: 300px;
          background-image: url("http://image.cheerby.cn/appImage/web/phone-img.png");
          transition: .3s;
          &.active {
            left: 0;
            z-index: 999;
          }
          &.to-leave {
            left: 0;
            z-index: 0;
          }
          &.one {
            background-position: 0 0;
          }
          &.two {
            background-position: -246px 0;
          }
          &.three {
            background-position: -492px 0;
          }
          &.four {
            background-position: -738px 0;
          }
        }

      }
      .up-content {
        position: absolute;
        width: 537px;
        height: 128px;
        top: 16%;
        left: 360px;
        div {
          position: absolute;
          top: 0;
          left: 0;
          width: 537px;
          height: 128px;
          background-image: url("http://image.cheerby.cn/appImage/web/up-content.png");
          transition: .3s;
          opacity: 0;
          &.active {
            opacity: 1;
          }
          &.to-leave {
            transition: none;
          }
          &.one {
            background-position: 0 0;
          }
          &.two {
            background-position: 0 -128px;
          }
          &.three {
            background-position: 0 -256px;
          }
          &.four {
            background-position: 0 -384px;
          }
        }
      }
      .down-content {
        color: @color-grey;
        font-size: 20px;
        width: 537px;
        position: absolute;
        top: 47%;
        left: 360px;
        height: 65px;
        line-height: 30px;
        transition: .3s;
        div {
          position: absolute;
          top: 0;
          left: 0;
          opacity: 0;
          width: 537px;
          height: 65px;
          &.active {
            opacity: 1;
          }
          &.to-leave {
            transition: none;
          }
        }
      }
      #icons-line {
        position: absolute;
        top: 66%;
        left: 370px;
        width: 268px;
        height: 40px;
        div {
          margin-right: 30px;
          background-image: url("http://image.cheerby.cn/appImage/web/icons.png");
          width: 40px;
          height: 40px;
          position: absolute;
          top: 0;

          &.one {
            background-position: 0 -40px;
            left: 0;
            &.active {
              background-position: 0 0;
            }
          }
          &.two {
            background-position: -40px -40px;
            left: 70px;
            &.active {
              background-position: -40px 0;
            }
          }
          &.three {
            background-position: -80px -40px;
            left: 140px;
            &.active {
              background-position: -80px 0;
            }
          }
          &.four {
            background-position: -120px -40px;
            left: 210px;
            &.active {
              background-position: -120px 0;
            }
          }
        }
      }
    }
  }
}

#webCommunity {
  width: 100%;
  margin: 60px auto 0;
  background-color: @bg-grey;
  #banner {
    width: 100%;
    height: 460px;
    background: url("http://image.cheerby.cn/appImage/web/socialcover2.jpg");
    background-size: cover;
    margin: auto;
    background-position: top center;
    position: relative;
  }
  #wrap {
    width: 1080px;
    margin: 0 auto;
    #left {
      width: 774px;
      float: left;
      margin-bottom: 120px;
      #article-list {
        .article-card {
          width: 724px;
          padding: 20px 25px;
          float: left;
          .article-title {
            width: 100%;
            font-size: 20px;
            :hover {
              color: @color-green-font;
            }
          }
          .info {
            margin-top: 18px;
            height: 20px;
            width: 100%;
            font-size: 14px;
            line-height: 20px;
            float: left;
            .author {
              display: inline;
              color: @green-dress;
            }
            span, time {
              color: @small-grey;
              display: inline-block;
            }
            .icon {
              float: right;
              color: @num-grey;
              height: 24px;
              line-height: 26px;
              vertical-align: middle;
              font-size: 12px;
            }
            .icons {
              margin-right: 5px;

            }
          }
          .article-img {
            margin: 10px 0;
            float: left;
          }
          .abstract {
            margin: 0 10px;
            font-size: 14px;
            color: @num-grey;
            a {
              color: @color-green-font;
              margin-left: 5px;
            }

          }
        }
        #page-line {
          max-width: 410px;
          height: 30px;
          line-height: 30px;
          padding: 5px 5px;
          border-radius: 25px;
          background-color: @color-white;
          color: @page-grey;
          float: left;
          .num-line {
            float: left;
            .num {
              float: left;
              width: 30px;
              height: 30px;
              text-align: center;
              border-radius: 50%;
              cursor: pointer;
              margin-right: 5px;
              &.active {
                background-color: @color-green-font;
                color: @color-white;
              }
            }
          }
          form {
            float: right;
            margin-right: 5px;
            input[type='text'] {
              width: 40px;
              height: 24px;
              border: 1px solid @page-grey;
              box-sizing: border-box;
              text-align: center;
              color: @page-grey;
              float: left;
              margin-top: 3px;
              margin-right: 5px;
            }
            input[type='submit'] {
              width: 30px;
              height: 30px;
              background: url("http://image.cheerby.cn/appImage/web/icon.png") no-repeat -98px 0;
              float: right;
              margin-left: 10px;

            }
          }
        }
      }
      #article {
        padding: 30px 25px;
        .kind {
          height: 20px;
          line-height: 20px;
          color: white;
          background-color: #20C375;
          padding: 3px 5px;
          float: left;
        }
        .article-info {
          width: 100%;
          border-top: 1px solid @bg-grey;
          float: left;
          height: 97px;
          padding: 35px 0;
          margin-top: 5px;
          //position: relative;
          .avator {
            width: 98px;
            height: 97px;
            float: left;
            margin-right: 15px;
            border-radius: 50%;
          }
          .topic {
            font-size: 26px;
          }
          .author {
            float: left;
            color: @green-dress;
          }
          #functionLine {
            float: right;
            height: 28px;
            line-height: 28px;
            #icon-box {
              float: right;
              height: 28px;
              font-size: 12px;
              color: @small-grey;
              span {
                display: inline-block;

              }
              i {
                background: url("http://image.cheerby.cn/appImage/web/icon.png") no-repeat ;
                display: inline-block;
                margin-left: 10px;
                margin-right: 2px;

              }
              .read {
                width: 24px;
                height: 14px;
                margin-top: 7px;
                background-position: -16px 0;
              }
              .comment {
                width: 20px;
                height: 16px;
                background-position:  -58px 0;
                margin-top: 6px;
              }
              .iine {
                 width: 18px;
                 height: 19px;
                background-position:  -40px 0;

                margin-top: 2px;
              }
              .share {
                width: 20px;
                height: 19px;
                background-position:  -78px 0;
                margin-top: 4px;
              }
            }
            #shareBox {
              float: right;
              font-size: 14px;
              .shareBox {
                float: right;
              }
            }
          }
        }
        .time {
          float: left;
          width: 100%;
          color: @num-grey;
        }
        .article-content {
          width: 100%;
          float: left;
          p {
            margin-top: 20px;
          }
          img {
            width: 100%;
          }

        }
        .double-button {
          width: 100%;
          text-align: right;
        }
      }
      .return {
        padding: 30px 20px;
        textarea {
          border: 1px solid #CCC;
          resize: none;
          overflow: hidden;
          width: e('calc(100% - 20px)');
          height: 200px;
          border-radius: 5px;
          padding: 10px;
        }
        button {
          margin-top: 20px;
          float: right;
        }
      }
      #comment {
        padding: 15px 20px 25px;
        font-size: 14px;
        .left {
          float: left;
        }
        .right {
          float: right;
        }
        .nick {
          color: @color-green-font;

        }
        .comment-info {
          width: 100%;
          height: 73px;
          line-height: 73px;
          margin: auto;
          img {
            display: block;
            float: left;
            width: 73px;
            height: 73px;
            margin-right: 20px;
            border-radius: 50%;
          }
          span {
          }
        }
        .comment-content {
          margin-left: 100px;
          padding-top: 20px;
          border-top: 1px solid @bg-grey;
          button {
            width: 35px;
            height: 28px;
            background: url("http://image.cheerby.cn/appImage/web/icon.png") no-repeat -136px 0;
            float: right;
            cursor: pointer;
          }
        }
        .comment-follow {
          margin-left: 100px;
          text-indent: 2em;
          margin-bottom: 10px;

        }
        .return {
          padding: 0;
          width: e('calc(100% - 100px)');
          float: right;
          textarea {
            height: 100px;
          }
          button {
            margin-top: 10px;
            height: 30px;
            line-height: 30px;
            padding: 0 10px;

          }
        }
      }
      .page-line {
      }
    }
    #right {
      float: left;
      width: 296px;
      margin-left: 10px;
      margin-bottom: 120px;
      .card {
        width: 296px;
        .block-title {
          font-size: 20px;
          margin-left: 8px;
        }

      }
      .search-card {
        height: 44px;
        padding-top: 11px;
        position: relative;
        form {
          input {
          }
          #search {
            display: block;
            width: 272px;
            height: 30px;
            border-radius: 20px;
            border: 1px solid @border-grey;
            text-indent: 20px;
            line-height: 32px;
            margin-left: 10px;
          }
          #search-submit {
            width: 16px;
            height: 16px;
            background: transparent url("http://image.cheerby.cn/appImage/web/icon.png") no-repeat 0 0;
            position: absolute;
            top: 19px;
            right: 30px;
            z-index: 5;
            cursor: pointer;
          }
        }
      }
      .block-card {
        height: 125px;
        padding-top: 15px;
        ul {
          margin-top: 10px;
          margin-left: 8px;
          li {
            width: 136px;
            height: 44px;
            float: left;
            text-align: center;
            line-height: 44px;
            display: block;
            border-top: 1px solid @bg-grey;
            box-sizing: border-box;
            &.leftBlock {
              border-right: 1px solid @bg-grey;
              box-sizing: border-box;
            }
          }
        }

      }
      .re-card {
        height: 365px;
        padding-top: 15px;
        .re-article {
          width: 235px;
          height: 57px;
          margin: 20px auto 0;
          .line {
            margin-top: 20px;

          }
          .article-title {
            width: 202px;
            margin-left: 13px;
            float: left;
            .topic {
              font-size: 14px;
              line-height: 16px;
            }
            p {
              font-size: 12px;
              color: @font-grey;
              margin-top: 10px;
            }
          }
        }
      }
      .link-card {
        height: 322px;
        text-align: center;

        #switch {
          .switch {
            width: 148px;
            height: 43px;
            float: left;
            line-height: 43px;
            font-size: 20px;
            cursor: pointer;
            border-right: 1px solid @color-green-font;

            &.on {
              color: @color-green-font;
              border-top: 1px solid @color-green-font;
              border-bottom: none;
            }
            &.off {
              border-bottom: 1px solid @color-green-font;
            }
          }
          img {
            width: 163px;
            height: 161px;
            margin-top: 25px;
          }
          #switch-msg {
          }
        }
      }
    }
  }

}

#webAbout {
  width: 100%;
  height: e('calc(100% - 60px)');
  margin: 60px auto 0;
  background-color: @bg-grey;
  #banner {
    width: 100%;
    height: 340px;
    background: url("http://image.cheerby.cn/appImage/web/aboutcover.jpg") no-repeat;
    background-size: cover;
    position: relative;
    .word {
      width: 343px;
      height: 134px;
      margin: auto;
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      left: 0;
      background: url("http://image.cheerby.cn/appImage/web/coverword2.png") no-repeat;
      background-size: contain;
    }
  }
  #about {
    width: 828px;
    margin: 25px auto 100px;
    font-size: 16px;
    .about-item {
      float: left;
      width: 100%;
      .about-title {
        width: 150px;
        height: 60px;
        background-size: contain;
        &.us {
          background: url("http://image.cheerby.cn/appImage/web/titleabout2.png") no-repeat;
        }
        &.event {
          margin-top: 50px;
          background: url("http://image.cheerby.cn/appImage/web/titlehistory2.png") no-repeat;
        }
        &.contact {
          margin-top: 50px;
          background: url("http://image.cheerby.cn/appImage/web/titlecontract.png") no-repeat;

        }

      }
      .about-content {
        margin-top: 30px;
        text-indent: 2em;
        line-height: 26px;
        &.map {
          width: 100%;
          height: 400px;
          border: @color-green-side 1px solid;
          box-sizing: border-box;
          margin-bottom: 80px;
        }
      }
    }
  }

}

#webHelp {
  width: 100%;
  margin: 60px auto 0;
  #banner {
    width: 100%;
    height: 130px;
    /* Firefox 3.6+ */
    background: -moz-linear-gradient(top, #D3FAF2, #62E5CA);
    /* Safari 4-5, Chrome 1-9 */
    /* -webkit-gradient(,  [, ]?,  [, ]? [, ]*) */
    background: -webkit-gradient(linear, top, from(#D3FAF2), to(#62E5CA));
    /* Safari 5.1+, Chrome 10+ */
    background: -webkit-linear-gradient(top, #D3FAF2, #62E5CA);
    /* Opera 11.10+ */
    background: -o-linear-gradient(top, #D3FAF2, #62E5CA);
    position: relative;
    .word {
      margin: auto;
      width: 520px;
      height: 60px;
      background: url("http://image.cheerby.cn/appImage/web/helptitle.png") no-repeat;
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      left: 0;

    }

  }
  #help {
    width: 1035px;
    margin: auto;
    ul {
      .qus-ans {
        margin-top: 30px;
        p {

        }
        .qus {
          color: @green-radius;
          font-size: 16px;
          span {
            display: inline-block;
            width: 20px;
            height: 20px;
            border-radius: 50px;
            background-color: @green-radius;
            color: @color-white;
            margin-right: 5px;
            text-align: center;
          }

        }
        .ans {
          margin-top: 10px;
          font-size: 14px;
          text-indent: 2em;
          line-height: 22px;

        }

      }

    }

  }

}

